#pragma once

#include <vector>
#include <ostream>
#include <algorithm>
#include <stdexcept>

template<class T>
class DataWriter {
public:
	void writeData(std::vector<T>& data, std::ostream& outputStream) {
		std::vector<T>::const_iterator it = data.begin();
		std::vector<T>::const_iterator itEnd = data.end();
		for(; it != itEnd; ++it) {
			outputStream << *it << std::endl;
		}
	}
};